home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-11 | 5.1 KB | 264 lines | [TEXT/MPS ] |
- ;
- ; File: ASDebugging.a
- ;
- ; Copyright: © 1984-1994 by Apple Computer, Inc.
- ; All rights reserved.
- ;
- ; Version: Universal Interfaces 2.0a3 ETO #16, MPW prerelease. Friday, November 11, 1994.
- ;
- ; Bugs?: If you find a problem with this file, send the file and version
- ; information (from above) and the problem description to:
- ;
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
-
- IF &TYPE('__ASDEBUGGING__') = 'UNDEFINED' THEN
- __ASDEBUGGING__ SET 1
-
-
- IF &TYPE('__APPLEEVENTS__') = 'UNDEFINED' THEN
- include 'AppleEvents.a'
- ENDIF
- ; include 'Errors.a' ;
- ; include 'ConditionalMacros.a' ;
- ; include 'Types.a' ;
- ; include 'Memory.a' ;
- ; include 'MixedMode.a' ;
- ; include 'OSUtils.a' ;
- ; include 'Events.a' ;
- ; include 'Quickdraw.a' ;
- ; include 'QuickdrawText.a' ;
- ; include 'EPPC.a' ;
- ; include 'PPCToolbox.a' ;
- ; include 'AppleTalk.a' ;
- ; include 'Processes.a' ;
- ; include 'Files.a' ;
- ; include 'Notification.a' ;
-
- IF &TYPE('__APPLESCRIPT__') = 'UNDEFINED' THEN
- include 'AppleScript.a'
- ENDIF
- ; include 'OSA.a' ;
- ; include 'AEObjects.a' ;
- ; include 'Components.a' ;
- ; include 'TextEdit.a' ;
-
- ; This mode flag can be passed to OSASetProperty or OSASetHandler
- ; and will prevent properties or handlers from being defined in a context
- ; that doesn't already have bindings for them. An error is returned if
- ; a current binding doesn't already exist.
- kOSAModeDontDefine EQU $0001
-
- ;*************************************************************************
- ; Component Selectors
- ;*************************************************************************
- kASSelectSetPropertyObsolete EQU $1101
- kASSelectGetPropertyObsolete EQU $1101
- kASSelectSetHandlerObsolete EQU $1103
- kASSelectGetHandlerObsolete EQU $1104
- kASSelectGetAppTerminologyObsolete EQU $1105
- kASSelectSetProperty EQU $1106
- kASSelectGetProperty EQU $1107
- kASSelectSetHandler EQU $1108
- kASSelectGetHandler EQU $1109
- kASSelectGetAppTerminology EQU $110A
- kASSelectGetSysTerminology EQU $110B
- kASSelectGetPropertyNames EQU $110C
- kASSelectGetHandlerNames EQU $110D
-
- ;*************************************************************************
- ; Context Accessors
- ;*************************************************************************
- IF GENERATING68K THEN
- Macro
- _OSASetProperty
- dc.w $2F3C
- dc.w $0006
- dc.w $1106
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT OSASetProperty
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _OSAGetProperty
- dc.w $2F3C
- dc.w $0006
- dc.w $1107
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT OSAGetProperty
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _OSAGetPropertyNames
- dc.w $2F3C
- dc.w $0002
- dc.w $110C
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT OSAGetPropertyNames
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _OSASetHandler
- dc.w $2F3C
- dc.w $0006
- dc.w $1108
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT OSASetHandler
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _OSAGetHandler
- dc.w $2F3C
- dc.w $0006
- dc.w $1109
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT OSAGetHandler
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _OSAGetHandlerNames
- dc.w $2F3C
- dc.w $0002
- dc.w $110D
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT OSAGetHandlerNames
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _OSAGetAppTerminology
- dc.w $2F3C
- dc.w $0008
- dc.w $110A
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT OSAGetAppTerminology
- ENDIF
-
- ; Errors:
- ; errOSASystemError operation failed
- ;
- IF GENERATING68K THEN
- Macro
- _OSAGetSysTerminology
- dc.w $2F3C
- dc.w $0000
- dc.w $110B
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT OSAGetSysTerminology
- ENDIF
-
- ; Errors:
- ; errOSASystemError operation failed
- ;
- ; Notes on terminology ID
- ;
- ; A terminology ID is derived from script code and language code
- ; as follows;
- ;
- ; terminologyID = ((scriptCode & 0x7F) << 8) | (langCode & 0xFF)
- ;
- ;*************************************************************************
- ; Obsolete versions provided for backward compatibility:
- ;
- IF GENERATING68K THEN
- Macro
- _ASSetProperty
- dc.w $2F3C
- dc.w $0002
- dc.w $1101
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT ASSetProperty
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _ASGetProperty
- dc.w $2F3C
- dc.w $0002
- dc.w $1101
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT ASGetProperty
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _ASSetHandler
- dc.w $2F3C
- dc.w $0002
- dc.w $1103
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT ASSetHandler
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _ASGetHandler
- dc.w $2F3C
- dc.w $0002
- dc.w $1104
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT ASGetHandler
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _ASGetAppTerminology
- dc.w $2F3C
- dc.w $0004
- dc.w $1105
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT ASGetAppTerminology
- ENDIF
-
- ; Errors:
- ; errOSASystemError operation failed
- ;
- ;************************************************************************
- ENDIF ; __ASDEBUGGING__
-